//
//  BanJiKeShiView.h
//  SanYiTeaching
//
//  Created by 李文强 on 2019/4/15.
//  Copyright © 2019 SanYi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BanJiKeShiCell.h"
#import "BanJiKeShiHeaderView.h"
#import "BanJiListTopDetailModel.h"
#import "BanJiKeShiModel.h"
#import "KeShiKaoQingView.h"


NS_ASSUME_NONNULL_BEGIN

@protocol BanJiKeShiViewDelegate <NSObject>

/**
 添加课时详情View(课时考勤)
 */
- (void)addKeShiKaoQing:(BanJiKeShiModel *)keShiModel;
/**
 添加课时详情View(课时详情)
 */
- (void)addKeShiXiangQing:(BanJiKeShiModel *)keShiModel;
@end

@interface BanJiKeShiView : UIView<UICollectionViewDelegate,UICollectionViewDataSource>{
    BOOL Type;
    BanJiKeShiHeaderView *headerView;
    int pageIndex;
    int pageSize;
}
@property (nonatomic, strong) UICollectionView *mainCollectionView;
@property (nonatomic, assign) float mainw;
@property (nonatomic, strong) BanJiListTopDetailModel *mainModel;
@property (nonatomic, strong) NSString *courseName;
@property (nonatomic, strong) NSString *renKeLaoShiName;
@property (nonatomic, strong) NSString *students;
@property (nonatomic, copy) NSString *classID;
@property (nonatomic, assign) BOOL haveLoad;
@property (nonatomic, strong) NSMutableArray *dataArray;
@property (nonatomic, strong) id<BanJiKeShiViewDelegate>mainDelegate;
- (void)updateModel;
- (void)getBanJiKeShiRequest;
@property (nonatomic, strong) KeShiKaoQingView *kaoQingDetailView;

/**
 重置pageIndex
 */
- (void)reloadIndex;
@end

NS_ASSUME_NONNULL_END
